﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditVote.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Weixin.EditVote"  ValidateRequest="False" %>

<%@ Import Namespace ="ZLCMS.Business.Util" %>
<%@ Register src="~/SystemManage/Control/JFileControl.ascx" tagname="JFileControl" tagprefix="jfc" %>



<form id="pageForm" method="post" runat="Server" class="pageForm required-validate"
    onsubmit="return validateCallback(this, navTabAjaxDone);" action="/SystemManage/Weixin/Interaction/EditVote.aspx">
    
<div class="pageContent">
    <div class="pageFormContent" layoutH="56">
        <dl class="nowrap">
            <dt>投票标题：</dt>
            <dd><asp:TextBox ID="tb_name" Width="200px" runat="server"></asp:TextBox>（建议10个汉字以内）</dd>
        </dl>
        <dl class="nowrap">
            <dt>投票简介：</dt>
            <dd><asp:TextBox ID="tb_desc" Width="300px" runat="server"></asp:TextBox>（建议13个汉字以内）</dd>
        </dl>
        <dl class="nowrap">
            <dt>详细内容：</dt>
            <dd>
                <textarea class="editor" name="txtContent" rows="30" cols="75" style="width: 100%" id="txtContent" runat="Server"
                    uplinkurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=zip,rar,txt" uplinkext="zip,rar,txt"
                    upimgurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=jpg,jpeg,gif,png" upimgext="jpg,jpeg,gif,png"
                    upflashurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=swf" upflashext="swf"
                    upmediaurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=avi" upmediaext="avi">
                </textarea>
            </dd>
        </dl>
        <dl>
            <dt>开始时间：</dt>
            <dd>
                <asp:TextBox ID="tb_sdate" runat="server" class="date" format="yyyy-MM-dd" ></asp:TextBox><a class="inputDateButton" href="javascript:;">选择</a>
            </dd>
        </dl>
        <dl>
            <dt>结束时间：</dt>
            <dd>
                <asp:TextBox ID="tb_edate" runat="server" class="date" format="yyyy-MM-dd" ></asp:TextBox><a class="inputDateButton" href="javascript:;">选择</a>
            </dd>
        </dl>
        <dl class="nowrap">
            <dt>投票状态：</dt>
            <dd style="color: #FF0000;">
                <%= ParamKit.GetValue("WxGamesStatus", _voteDb == null ? "SETTING" : _voteDb.Status, "&nbsp;")%>
            </dd>
        </dl>
        <dl class="nowrap">
            <dt>投票项目：</dt>
            <dd>
            <%if (string.IsNullOrEmpty(Request["uid"]))
              { %>
                <span style="line-height: 21px;">请先保存当前配置</span>
                <%}else{ %>
                <a class="button" href="/SystemManage/Weixin/Interaction/VoteItemList.aspx?vid=<%=Request["uid"]%>" target="navTab" title="投票选项" rel="VoteItemList" ><span>管理</span></a>
                
                <%} %>
                </dd>
        </dl>

        <dl class="nowrap">
            <dt>投票规则：</dt>
            <dd>（如：每用户3天参与2次，即同一个微信用户3天内可以参与2次。若不限制次数，即在次数中填0。）</dd>
        </dl>
        <dl class="nowrap">
            <dt>&nbsp;</dt>
            <dd>
                <span style="float: left; line-height: 21px;margin-right:10px;">每个用户</span><asp:TextBox ID="tb_day" runat="server" width="50px" class="required digits"></asp:TextBox>
                <span style="float: left; line-height: 21px;margin:0 10px;">天可以参与</span><asp:TextBox ID="tb_times" runat="server" width="50px" class="required digits"></asp:TextBox>
                <span style="float: left; line-height: 21px;margin-left:10px;">次</span>
            </dd>
        </dl>       
        <dl class="nowrap">
            <dt>投票封面图片：</dt>
            <dd>（支持JPG、PNG格式，较好的效果为640*320）</dd>
        </dl>
        <dl class="nowrap">
            <dt>&nbsp;</dt>
            <dd><jfc:JFileControl ID="fc_open" runat="server" FileCountLimit="1" FileFilters="*.jpg;*.jpeg;*.bmp;*.png;*.gif" FileDesc="投票封面图片"/></dd>
        </dl>
	</div>
	
    <div class="formBar">
		<ul>
            <li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
			<li>
				<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
			</li>
		</ul>
	</div>
</div>
</form>

